<!--  Nguyen Huu Nhat -->
<?php 
@session_start();
include '../Security/CheckAdmin.php';
include '../DataBase/ConnectDB.php';
 include '../Home/DefineVar.php';
 mysql_select_db(MYSQL_DATABASE,$link);
 
 /**
  * ユーザの権限を検索する
  * @param $isAdmin
  * @return unknown_type
  */
 function CheckAdmin($isAdmin){
 	if($isAdmin == '1'){
 		return ('管理者');
 	}
 	if($isAdmin == '0'){
 	return ('ユーザ');	
 	}
 }
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="../FileForInterface/popcalendar.js"></script> 
</head>
<body>
<?php 
////////////////////////////////////////////////////////////////////////

$query = "SELECT * FROM ".MYSQL_TABLE_USERINFOR." WHERE isconfirm ='0' ";

//print($query);
$result = mysql_query($query, $link);

if(mysql_num_rows($result)!=0){
	print("<h1>ユーザ情報</h1>");
print("<table border ='2' bordercolor = '0000FF' cellspacing ='1' style='font-size: 18px' width='100%'>
		<tbody align='center' size='5'>
		<tr><td>アカウント名</td><td width='15%' valign ='top'>名前</td><td width ='15%' valign ='top'>メール</td><td width ='10%' valign ='top'>電話番号</td><td width='40%' valign ='top'>住所</td><td >認証</td><td>削除</td></tr>");
while($row=mysql_fetch_array($result)){
print("<tr><td><a href=UpdateUser.php?userId=$row[8]>$row[0]</a></td><td>$row[1]</td><td>$row[3]</td><td>$row[4]</td><td>$row[5]</td><td><a href=ConfirmUserEx.php?userId=$row[8]>認証</a></td><td><a href=DeleteUserEx.php?userId=$row[8]>削除</a></td></tr>");
}
print("</tbody></table>");
}
else{
	print("<br><h1>".SEARCH_NOT_DATA_MESS."</h1>");
}
mysql_close($link);
?>
</body>
</html>
